﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class OccupationMap : ClassMap<Occupation>
    {
        public OccupationMap()
        {
            Table("OCCUPATION");
            Id(x => x.OccupationId, "OCCUPATION_ID").GeneratedBy.Identity();
            Map(x => x.OccupationName, "OCCUPATION_NAME");

        }
    }
}
